<?php 
	class Model_record_of_learning extends CI_Modol{
		function get_learning_record_by_id($student_id){
			$this->db->select('*');
			$this->db->where('student_id',$student_id);
			$query=$this->db->get('record_of_learning');
			$result_array=$query->row_array();
			return $result_array;
		}
		
		function get_learning_record_by_id_unit($student_id,$unit){
			$this->db->select('*');
			$this->db->where('student_id',$student_id);
			$this->db->where('unit',$unit);
			$query=$this->db->get('record_of_learning');
			$result_array=$query->row_array();
			return $result_array;
		}

		function get_score_by_id($student_id){

		}

	}
?>
